package com.designpattern.builder.demo;

//指挥：核心 负责指挥构建一个工程，工程如何构建，由他决定，
public class Director {
    public Product build(Builder builder){
        builder.buildB();

        builder.buildA();
        builder.buildC();
        builder.buildD();

        return builder.getProduct();
    }
}
